package cn.project.lemontree.dao;


import cn.project.lemontree.bean.Class;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ClassDao extends BaseMapper<Class> {
    List<Class> listPage(@Param("page") int page,
                         @Param("size") int size,
                         @Param("className") String className,
                         @Param("teacherName") String teacherName);
    int count(@Param("className") String className,
              @Param("teacherName") String teacherName);
    int save(Class aclass);
    int update(Class aclass);
    Class findClassByid(Integer teacherId);
    int setInvitationCode(@Param("classId") Integer classId);
    Class getClassdetails(Integer childId);
    List<Class> getAllClass();
    List<Class> findEmptyClass();
    Integer countChild();
}
